package com.xjtu.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjtu.project.model.domain.Shoe;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.project.model.dto.ShoeDTO;
import com.xjtu.project.model.dto.ShoeIfDTO;
import com.xjtu.project.model.dto.shoePageQuery;
import com.xjtu.project.model.vo.ShoeCategoryVO;
import com.xjtu.project.model.vo.ShoeCnVO;
import com.xjtu.project.model.vo.ShoeVO;

import java.util.List;

/**
* @author 86185
* @description 针对表【shoe】的数据库操作Service
* @createDate 2025-07-04 18:26:18
*/
public interface ShoeService extends IService<Shoe> {

    boolean updateByIdMy(Shoe shoe);

    boolean addShoeMy(ShoeDTO shoe);

    ShoeVO getByIdMy(Long id);

    List<ShoeCategoryVO> getByCategory();

    boolean updateByStatus(Integer status,Integer id);

    Page<Shoe> selectPagedMy(ShoeIfDTO shoe);

    Page<Shoe> getPage(shoePageQuery shoePage);
    Page<Shoe> selectByCategoryId(ShoeIfDTO shoe);

    List<ShoeCnVO> getByCategoryId(Integer categoryId);

    List<ShoeCnVO> getByName(String name);
}
